package cn.com.cym.gamezao.entity;

import cn.com.cym.gamezao.base.BaseEntity;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 文件管理表
 *
 */
@Setter
@Getter
@Accessors(chain = true)
@NoArgsConstructor
@Table(name = "c_local_file")
@Entity
public class LocalFile extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 3306499222561048800L;
    /**
     * 文件名称
     */
    @Column(length = 36)
    private String realName;


    /**
     * 随机名称
     */
    @Column(length = 64)
    private String uuidName;


    /**
     * 文件后缀格式
     */
    @Column(length = 6)
    private String suffix;


    /**
     * 文件大小
     */
    @Column
    private Long fileSize;

    /**
     * 文件存放文件夹地址
     */
    @Column(length = 120)
    private String filePath;


    /**
     * 文件服务器ip
     */
    @Column(length = 16)
    private String serverIp="local";
}
